# include <stdio.h>
void swap1(int a,int b)
{
	int tmp = 0;
	tmp = a;
	a = b;
	b = tmp;
}
void swap2(int* pa,int* pb)
{
	int tmp = 0;
	
	tmp = *pa;
	*pa = *pb;
	*pb = tmp;

}
int main()
{
	int num1 = 1;
	int num2 = 2;
	swap1(num1, num2);
	printf("%d %d\n", num1 ,num2);
	swap2(&num1, &num2);
	printf("%d %d", num1, num2);

	return 0;
}